<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<jsp:directive.page import="com.database.DataBase"/>
<jsp:directive.page import="com.sql.ReportFormSql"/>
<html>
  <head>
    <title>My JSP 'adminUserDelete.jsp' starting page</title>
  </head>
  <body>
      <% 
            int roleid=0;
            if(request.getParameter("roleid")!=null){
            	roleid=Integer.parseInt(request.getParameter("roleid"));
            }
            String sql_del="delete from Cqms_Role where roleid=";
            sql_del=sql_del+roleid;
            DataBase db2=new DataBase();
            db2.executeUpdate(sql_del);
            db2.closeStmt();
            db2.closeConn();
            response.sendRedirect("adminRole.jsp");
      %>
  </body>
</html>
